<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/jhz_pzbm_js.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/jhz_pzbm_js.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'jhz_pzbm_js_id',
                footer: "Foots",
                cnName: '加换装配置计算表',
                name: 'jrtable/jhz_pzbm_js',
                url: "/jhz_pzbm_js/",
                sortName: "zj_bm"
            });
            const editFormFields = ref({"zc_bm":"","zj_bm":"","zj_bm_zh":"","pz_bl":"","fdjxh":"","dsxh":"","glzd":"","fsnhq":"","bsqxh":"","hsq":"","nhq":"","zdxs":"","qqgg":"","qqmwh":"","qhxwdg":"","zxj":"","hqxh":"","hqsb":"","hqmwh":"","ljcss":"","bhps":"","lt":"","lw":"","qlbtyjzz":"","tyjc":"","rycnq":"","ryx":"","klq":"","kt":"","zckt":"","dijsq":"","jssxz":"","zy":"","qbxg":"","dlz":"","dnb":"","hzhdxs":"","qmzys":"","tc":"","swp":"","cmxsb":"","anz":"","xdclx":"","dzzd":"","czdmt":"","nht":"","nhtg7zncp":"","fsxdb":"","fzaqxt":"","hlsdnb":"","spfzxt":"","czbx":"","lbq":"","xdcrn":"","jqjr":"","expression":"","expression_zh":""});
            const editFormOptions = ref([[{"title":"整车编码","field":"zc_bm"},
                               {"title":"组件编码","field":"zj_bm"},
                               {"title":"组件名称","field":"zj_bm_zh"},
                               {"title":"配置变量","field":"pz_bl"}],
                              [{"dataKey":"亿格配置代码清单","data":[],"title":"发动机型号","field":"fdjxh","type":"select"},
                               {"dataKey":"亿格配置代码清单","data":[],"title":"定速巡航","field":"dsxh","type":"select"},
                               {"dataKey":"亿格配置代码清单","data":[],"title":"缸内制动","field":"glzd","type":"select"}],
                              [{"dataKey":"亿格配置代码清单","data":[],"title":"风扇离合器","field":"fsnhq","type":"select"},
                               {"dataKey":"亿格配置代码清单","data":[],"title":"变速器型号","field":"bsqxh","type":"select"},
                               {"dataKey":"亿格配置代码清单","data":[],"title":"缓速器","field":"hsq","type":"select"}],
                              [{"title":"离合器","field":"nhq"},
                               {"title":"制动型式","field":"zdxs"},
                               {"title":"前桥规格","field":"qqgg"}],
                              [{"title":"前桥免维护","field":"qqmwh"},
                               {"title":"前横向稳定杆","field":"qhxwdg"},
                               {"title":"转向机","field":"zxj"}],
                              [{"title":"后桥型号","field":"hqxh"},
                               {"title":"速比","field":"hqsb"},
                               {"title":"后桥免维护","field":"hqmwh"}],
                              [{"title":"轮间差速锁","field":"ljcss"},
                               {"title":"板簧片数","field":"bhps"},
                               {"title":"轮胎","field":"lt"}],
                              [{"title":"轮辋","field":"lw"},
                               {"title":"前轮爆胎应急装置","field":"qlbtyjzz"},
                               {"title":"胎压监测","field":"tyjc"}],
                              [{"title":"燃油粗滤器","field":"rycnq"},
                               {"title":"燃料箱","field":"ryx"},
                               {"title":"空滤器","field":"klq"}],
                              [{"title":"空调","field":"kt"},
                               {"title":"驻车空调","field":"zckt"},
                               {"title":"独立加热器","field":"dijsq"}],
                              [{"title":"驾驶室悬置","field":"jssxz"},
                               {"title":"座椅","field":"zy"},
                               {"title":"前保险杠","field":"qbxg"}],
                              [{"title":"导流罩","field":"dlz"},
                               {"title":"挡泥板","field":"dnb"},
                               {"title":"后组合灯型式","field":"hzhdxs"}],
                              [{"title":"前面罩颜色","field":"qmzys"},
                               {"title":"天窗","field":"tc"},
                               {"title":"上卧铺","field":"swp"}],
                              [{"title":"车门下饰板","field":"cmxsb"},
                               {"title":"鞍座","field":"anz"},
                               {"title":"蓄电池类型","field":"xdclx"}],
                              [{"title":"电子制动型式","field":"dzzd"},
                               {"title":"车载多媒体","field":"czdmt"},
                               {"title":"联合通","field":"nht"}],
                              [{"title":"联合通G7智能产品","field":"nhtg7zncp"},
                               {"title":"风扇下挡板","field":"fsxdb"},
                               {"title":"辅助安全系统","field":"fzaqxt"}],
                              [{"title":"后轮上挡泥板","field":"hlsdnb"},
                               {"title":"视频辅助系统","field":"spfzxt"},
                               {"title":"车载冰箱","field":"czbx"}],
                              [{"title":"逆变器","field":"lbq"},
                               {"title":"蓄电池容量","field":"xdcrn"},
                               {"title":"进气加热","field":"jqjr"}],
                              [{"title":"逻辑表达式","field":"expression","colSize":12}],
                              [{"title":"逻辑表达式(中文)","field":"expression_zh","colSize":12}]]);
            const searchFormFields = ref({"zc_bm":""});
            const searchFormOptions = ref([[{"title":"整车编码","field":"zc_bm","type":"text"}]]);
            const columns = ref([{field:'jhz_pzbm_js_id',title:'加换装配置编码计算表',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'zc_bm',title:'整车编码',type:'string',width:220,align:'left',sort:true},
                       {field:'zj_bm',title:'组件编码',type:'string',link:true,width:180,align:'left'},
                       {field:'zj_bm_zh',title:'组件名称',type:'string',width:180,align:'left'},
                       {field:'pz_bl',title:'配置变量',type:'string',width:220,align:'left'},
                       {field:'fdjxh',title:'发动机型号',type:'string',bind:{ key:'亿格配置代码清单',data:[]},width:220,align:'left'},
                       {field:'dsxh',title:'定速巡航',type:'string',bind:{ key:'亿格配置代码清单',data:[]},width:220,align:'left'},
                       {field:'glzd',title:'缸内制动',type:'string',bind:{ key:'亿格配置代码清单',data:[]},width:220,align:'left'},
                       {field:'fsnhq',title:'风扇离合器',type:'string',bind:{ key:'亿格配置代码清单',data:[]},width:220,align:'left'},
                       {field:'bsqxh',title:'变速器型号',type:'string',bind:{ key:'亿格配置代码清单',data:[]},width:220,align:'left'},
                       {field:'hsq',title:'缓速器',type:'string',bind:{ key:'亿格配置代码清单',data:[]},width:220,align:'left'},
                       {field:'nhq',title:'离合器',type:'string',width:220,align:'left'},
                       {field:'zdxs',title:'制动型式',type:'string',width:220,align:'left'},
                       {field:'qqgg',title:'前桥规格',type:'string',width:220,align:'left'},
                       {field:'qqmwh',title:'前桥免维护',type:'string',width:220,align:'left'},
                       {field:'qhxwdg',title:'前横向稳定杆',type:'string',width:220,align:'left'},
                       {field:'zxj',title:'转向机',type:'string',width:220,align:'left'},
                       {field:'hqxh',title:'后桥型号',type:'string',width:220,align:'left'},
                       {field:'hqsb',title:'速比',type:'string',width:220,align:'left'},
                       {field:'hqmwh',title:'后桥免维护',type:'string',width:220,align:'left'},
                       {field:'ljcss',title:'轮间差速锁',type:'string',width:220,align:'left'},
                       {field:'bhps',title:'板簧片数',type:'string',width:220,align:'left'},
                       {field:'lt',title:'轮胎',type:'string',width:220,align:'left'},
                       {field:'lw',title:'轮辋',type:'string',width:220,align:'left'},
                       {field:'qlbtyjzz',title:'前轮爆胎应急装置',type:'string',width:220,align:'left'},
                       {field:'tyjc',title:'胎压监测',type:'string',width:220,align:'left'},
                       {field:'rycnq',title:'燃油粗滤器',type:'string',width:220,align:'left'},
                       {field:'ryx',title:'燃料箱',type:'string',width:220,align:'left'},
                       {field:'klq',title:'空滤器',type:'string',width:220,align:'left'},
                       {field:'kt',title:'空调',type:'string',width:220,align:'left'},
                       {field:'zckt',title:'驻车空调',type:'string',width:220,align:'left'},
                       {field:'dijsq',title:'独立加热器',type:'string',width:220,align:'left'},
                       {field:'jssxz',title:'驾驶室悬置',type:'string',width:220,align:'left'},
                       {field:'zy',title:'座椅',type:'string',width:220,align:'left'},
                       {field:'qbxg',title:'前保险杠',type:'string',width:220,align:'left'},
                       {field:'dlz',title:'导流罩',type:'string',width:220,align:'left'},
                       {field:'dnb',title:'挡泥板',type:'string',width:220,align:'left'},
                       {field:'hzhdxs',title:'后组合灯型式',type:'string',width:220,align:'left'},
                       {field:'qmzys',title:'前面罩颜色',type:'string',width:220,align:'left'},
                       {field:'tc',title:'天窗',type:'string',width:220,align:'left'},
                       {field:'swp',title:'上卧铺',type:'string',width:220,align:'left'},
                       {field:'cmxsb',title:'车门下饰板',type:'string',width:220,align:'left'},
                       {field:'anz',title:'鞍座',type:'string',width:220,align:'left'},
                       {field:'xdclx',title:'蓄电池类型',type:'string',width:220,align:'left'},
                       {field:'dzzd',title:'电子制动型式',type:'string',width:220,align:'left'},
                       {field:'czdmt',title:'车载多媒体',type:'string',width:220,align:'left'},
                       {field:'nht',title:'联合通',type:'string',width:220,align:'left'},
                       {field:'nhtg7zncp',title:'联合通G7智能产品',type:'string',width:220,align:'left'},
                       {field:'fsxdb',title:'风扇下挡板',type:'string',width:220,align:'left'},
                       {field:'fzaqxt',title:'辅助安全系统',type:'string',width:220,align:'left'},
                       {field:'hlsdnb',title:'后轮上挡泥板',type:'string',width:220,align:'left'},
                       {field:'spfzxt',title:'视频辅助系统',type:'string',width:220,align:'left'},
                       {field:'czbx',title:'车载冰箱',type:'string',width:220,align:'left'},
                       {field:'lbq',title:'逆变器',type:'string',width:220,align:'left'},
                       {field:'xdcrn',title:'蓄电池容量',type:'string',width:220,align:'left'},
                       {field:'jqjr',title:'进气加热',type:'string',width:220,align:'left'},
                       {field:'expression',title:'逻辑表达式',type:'string',width:350,align:'left'},
                       {field:'expression_zh',title:'逻辑表达式(中文)',type:'string',width:350,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
